# hsc200-image
#
# Image configuration for the OE platform in hsc200
#
# host machine : fedora 10 64bits
#
# This image basically consists of: uclibc, busybox, udev, sysv init, and a few
# init scripts for running up the system.
#
# It is truely tiny and should build with most architectures/machines.
#
# The image is tested to build and run succesfully with the following machines:
#
#	* Imagia MCP4020 (jffs2 image size ~ 1 MB, uclibc)
#	* x86
#
# Maintainer: Home Scenario.inc
#

# Install basic files only
IMAGE_INSTALL = "base-files base-passwd tinylogin strace perl php apache2 openssh lirc lirc-remotes cacao"
IMAGE_LINGUAS = ""

# Use busybox as login manager
IMAGE_LOGIN_MANAGER = "busybox"

# Include minimum init and init scripts
IMAGE_DEV_MANAGER = "udev"
IMAGE_INIT_MANAGER = "sysvinit sysvinit-pidof"
IMAGE_INITSCRIPTS = "initscripts-hsc200"


# Post process to the image
fix_sys_postprocess() {
     mv ${OFFLINE_ROOT}/etc/udev ${OFFLINE_ROOT}/etc/udev.sys
     ln -s /tmp/udev ${OFFLINE_ROOT}/etc/udev
     mv ${OFFLINE_ROOT}/var ${OFFLINE_ROOT}/var.sys
     ln -s /tmp/var ${OFFLINE_ROOT}/var
}

ROOTFS_POSTPROCESS_COMMAND += "fix_sys_postprocess"

inherit image
